package cn.itcast.store.service;

import java.sql.SQLException;
import java.util.List;

import cn.itcast.store.domain.PageModel;
import cn.itcast.store.domain.Product;

public interface ProductService {
	List<Product> findNewProducts() throws SQLException;
	List<Product> findHotProducts() throws SQLException;
	Product findProductByPid(String pid) throws SQLException;
	PageModel findProductsWithCidAndPage(String cid, int curNum)throws SQLException ;
	PageModel findAllProductsWithPage(Integer curNum) throws Exception;
	PageModel findProductsWithPageAndPflag(Integer curNum) throws Exception;
	void deleteProductsByPid(String pid, int flag);
	void saveProduct(Product product)throws Exception ;
	void editProduct(Product product);
	
	

}
